
import org.apache.solr.client.solrj.SolrQuery
import org.apache.solr.client.solrj.impl.{CloudSolrClient, HttpSolrClient}

import scala.compat.java8.functionConverterImpls.AsJavaFunction
import scala.concurrent.{ExecutionContext, Future}
//import com.mongodb.{MongoClient, MongoCredential, ServerAddress}

// scala 2.11
// scala 2.12
//import scala.collection.convert.ImplicitConversions._

/**
  * Created by kylin on 17-3-13.
  */
object app extends App {

  import ExecutionContext.Implicits.global
  val fu=Future{
    println("started")
    Thread.sleep(5000)
    println("in done")
  }

  fu.onComplete{_=> println("completed")}

  println("submitted")


  Thread.sleep(10000)

  println(fu.isCompleted)

  println("main done")

}